package cn.kgc.mapper;

import cn.kgc.pojo.Info;
import com.sun.rmi.rmid.ExecOptionPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InfoMapper {

    public int add(Info info)throws Exception;
    public int modify(Info info)throws Exception;
    public int deleteInfoById(@Param("id")Integer id)throws Exception;
    public int getInfoCount(@Param("softwareName")String querySoftwareName,
                               @Param("status")Integer queryStatus,
                               @Param("categoryLevel1")Integer queryCategoryLevel1,
                               @Param("categoryLevel2")Integer queryCategoryLevel2,
                               @Param("categoryLevel3")Integer queryCategoryLevel3,
                               @Param("flatformId")Integer queryFlatformId,
                               @Param("devId")Integer devId)throws Exception;
    public List<Info> getInfoList(@Param("softwareName")String querySoftwareName,
                                     @Param("status")Integer queryStatus,
                                     @Param("categoryLevel1")Integer queryCategoryLevel1,
                                     @Param("categoryLevel2")Integer queryCategoryLevel2,
                                     @Param("categoryLevel3")Integer queryCategoryLevel3,
                                     @Param("flatformId")Integer queryFlatformId,
                                     @Param("devId")Integer devId,
                                     @Param("from")Integer currentPageNo,
                                     @Param("pageSize")Integer pageSize)throws Exception;
    public Info getInfo(@Param("id")Integer id,@Param("APKName")String APKName)throws Exception;
    public int deleteLogo(@Param("id")Integer id)throws Exception;
    public int updateVersionId(@Param("versionId")Integer versionId,
                                @Param("id")Integer appId)throws Exception;
    public int updateSatus(@Param("status")Integer status,
                            @Param("id")Integer id)throws Exception;



}